package com.demo.lab.mapper;


import com.demo.lab.entity.Menu;
import com.demo.lab.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<User> selectList(User notice);

    User selectUserByName(@Param("username") String username);

    User selectUserById(@Param("id") String id);

    User selectUser(User user);

    List<Menu> getMenuListToAdmin();

    List<Menu> getMenuListToStu();

    List<Menu> getMenuListToTeacher();

    Integer update(User user);

    Integer insert(User user);

    Integer updateByIds(String[] ids);

    List<User> lastLoginUser();
}
